serializeEntry

abstract fun serializeEntry(input: T?, errorBuilder: MutableList<String>, flags: Byte): TomlElement

Serializes either the provided input or stored value to a TomlElement

If the input is not null, it should be serialized, otherwise the stored value of this serializer (or a fallback value) should be serialized. Serialization of the correct type should occur either way.

Return

TomlElement with the serialized result.

Author

fzzyhmstrs

Since

0.1.1

Parameters

input

T, nullable. The optional external value to serialize

errorBuilder

List for appending error messages. Serialization should fail soft, returning a fallback TomlElement or TomlNull as a last resort instead of crashing. Problems should be appended to the builder.

flags

serialization flags for passing to built in serialization methods as needed.